//
//  SecondViewController.m
//  HWUI09_UITabBarController
//
//  Created by 崔将军 on 16/3/21.
//  Copyright © 2016年 崔将军. All rights reserved.
//

#import "SecondViewController.h"
#import "AllView.h"

@interface SecondViewController ()

@property (nonatomic, retain) NSMutableArray *picArr;

@end

@implementation SecondViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    [self addPicture];
    
    // 半透明效果如果不关，坐标会不统一
    self.navigationController.navigationBar.translucent = NO;
}

- (void)addPicture {
    
    self.picArr = [NSMutableArray array];
    for (NSInteger i = 1; i < 8; i ++) {
        UIImage *image = [UIImage imageNamed:[NSString stringWithFormat:@"h%ld.jpeg", i]];
        [self.picArr addObject:image];
    }
    AllView *allScroll = [[AllView alloc] initWithFrame:CGRectMake(0, 100, self.view.frame.size.width, 400) images:self.picArr];
    [self.view addSubview:allScroll];
    [allScroll release];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
